<?php


namespace app\api\controller;


use app\service\model\BannerImagesModel;
use app\service\Y;

class Banner extends BaseApi
{

    /**
     * 获取banner列表
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function get_banner_list(): \think\response\Json
    {
        $seat_id = input('param.seat_id', 0);
        $list = BannerImagesModel::field('image, desc')->where('banner_seat_id', '=', $seat_id)->select();
        return Y::success(compact('list'), 'banner列表');
    }
}